import requests
import json


def seek_desc(xdesc, xusername=''):
    xjson = dict()
    xjson['desc'] = xdesc
    xjson['username'] = xusername

    res = requests.post('http://127.0.0.1:7777/seek', json=xjson)
    xjson = json.loads(res.text)
    xouput = xjson['dis']
    return xouput


if '__main__' == __name__:

    xoutput = seek_desc('我最近老犯困！而且没有食欲老咳嗽。', 'u001')
    print('out:', xoutput)